package com.chinasoft.tw.service.zengjianchao;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ZJC implements TrueWord{
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ZJC() {
        this.name = "曾建朝";
        wordList.add("吃好");
        wordList.add("喝好");
        wordList.add("睡好");
    }
    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
